package com.voltmao.persistent.mapper;

import org.apache.ibatis.annotations.Param;
import com.voltmao.persistent.model.ContractProviderGdbc;
import com.voltmao.persistent.model.ContractProviderGdbcCriteria;

import java.util.List;
import java.util.Map;

public interface ContractProviderGdbcMapper {
    int countByExample(ContractProviderGdbcCriteria example);

    int deleteByExample(ContractProviderGdbcCriteria example);

    int deleteByPrimaryKey(String dataId);

    int insert(ContractProviderGdbc record);

    int insertSelective(ContractProviderGdbc record);

    List<ContractProviderGdbc> selectByExample(ContractProviderGdbcCriteria example);

    ContractProviderGdbc selectByPrimaryKey(String dataId);

    int updateByExampleSelective(@Param("record") ContractProviderGdbc record, @Param("example") ContractProviderGdbcCriteria example);

    int updateByExample(@Param("record") ContractProviderGdbc record, @Param("example") ContractProviderGdbcCriteria example);

    int updateByPrimaryKeySelective(ContractProviderGdbc record);

    int updateByPrimaryKey(ContractProviderGdbc record);

    ContractProviderGdbc selectByExampleForOne(ContractProviderGdbcCriteria example);

    Map<String, Object> selectMapByPrimaryKey(String dataId);

    Map<String, Object> selectMapByExampleForOne(ContractProviderGdbcCriteria example);

    List<Map<String, Object>> selectMapByExample(ContractProviderGdbcCriteria example);

    /*自定义*/

    /**
     * 根据合同主键查询参数信息
     * @param cpId
     * @return
     */

    List<Map<String, Object>> selectMapByCPId(@Param("cpId") String cpId);
}